using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WinUI
{
    public partial class frmMoveClass : Form
    {
        
        public frmMoveClass()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            frmPupilProfile search=new frmPupilProfile();
            search.ShowDialog();
            
            DataRow select = search.drw;
            DataTable dt = new DataTable();
            dt.ImportRow(select);
            //dt.Rows.Clear();
            //dt.Rows.Add(select);
            dgToSwitch.DataSource = dt;
            //colID.DataPropertyName = dt.Columns["PupilID"].ToString();
            //colName.DataPropertyName = dt.Columns["FullName"].ToString();
            //colGender.DataPropertyName = dt.Columns["Gender"].ToString();
            //colBirth.DataPropertyName = dt.Columns["Birth"].ToString();
        }

        private void dgToSwitch_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}